//package com.fengwenyi.mp3demo.mmall.highconcurrency;
//
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
////import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
////import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
//import org.springframework.context.annotation.Bean;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
//@SpringBootApplication
////@EnableHystrixDashboard
////@EnableCircuitBreaker
//public class ConcurrencyApplication extends WebMvcConfigurerAdapter{
//
//	public static void main(String[] args) {
//		SpringApplication.run(ConcurrencyApplication.class, args);
//	}
//
//	@Bean
//	public FilterRegistrationBean httpFilter() {
//		FilterRegistrationBean registrationBean = new FilterRegistrationBean();
//		registrationBean.setFilter(new HttpFilter());
//		registrationBean.addUrlPatterns("/threadLocal/*");
//		return registrationBean;
//	}
//
//	@Override
//	public void addInterceptors(InterceptorRegistry registry) {
//		registry.addInterceptor(new HttpInterceptor()).addPathPatterns("/**");
//	}
//}
